package com.huanf.enums;

import lombok.Getter;

@Getter
public enum SystemEnum {

    FAIL(601,"暂无可用key库存，请联系【b站 涣沷a靑惷】"),
    FAIL_ADDRESS(602,"获取地理位置异常"),
    LOAD_MAX(603,"官方那边的负载已饱和，请稍后再试"),
    REQUEST_FAST(604,"官方那边检测发现可疑，别请求太快"),
    MAIL_SEND_FAIL(605,"邮件发送失败，未开启邮件功能，请在application.yml文件的enable属性开启"),
    MAIL_PORT_FAIL(607,"邮件发送失败，请检查服务器465端口是否放行"),
    REFUSE_VISIT_MODEL(608,"您提供的api-key无权访问该模型"),
    UNKNOWN_ERROR(900,"未知错误，可能是官方那边文档发生变动，请联系【b站 涣沷a靑惷】"),

    ;

    int code;
    String msg;
    String by;

    SystemEnum(int code, String data){
        this.code = code;
        this.msg = data;
        this.by = "b站 涣沷a靑惷";
    }
}